<title>优惠券管理</title>
<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table id="sample-table-1" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>银行名称</th>
						<th>卡类型</th>
						<th>银行卡图标</th>
						<th>创建时间</th>
						<th>修改时间</th>
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<#list pager.itemList as u>
					<tr>
						<td><span class="gray center">${u.id!}</span></td>
						<td><span class="gray center">${u.name!}</span></td>
						<td><span class="green center">
						<span class="label label-sm label-warning arrowed">
								${dicSetting.getParameterValue("bank.type." + u.type)!}
							</span>
						</span></td>
						<td><span class="green center">
							<#if u.image??>
								<span class="profile-picture">
									<img style="height:105px;width:250px;" class="editable img-responsive" src="${tagUtils.getFileFullPath(u.image)}" />
								</span>
							</#if>
						
						</span></td>
						<td>
							<#if u.createTime??>
								${tagUtils.formatDate(u.createTime)!}
							</#if>
						</td>
						<td>
							<#if u.modifyTime??>
								${tagUtils.formatDate(u.modifyTime)!}
							</#if>
						</td>
						<td><span class="green center">
							<#if u.state == 1>
								正常
							<#else>
								禁用
							</#if>
						</span></td>
						<td>
							<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
								<a class="green" href="${ctx}/admin/bank/${u.id}/edit${suffix}" alt="编辑">
									<i class="icon-pencil bigger-130" title="编辑"></i>
								</a>
								<a class="red" href="${ctx}/admin/coupon/${u.id}/delete${suffix}" onclick="return confirm('你确定删除么?');" alt="Delete">
									<i class="icon-trash bigger-130"></i>
								</a>
							</div>
						</td>
					</tr>
				</#list>
				</tbody>
			</table>
		</div><!-- /.table-responsive -->
		<div class="hr hr-18 dotted hr-double"></div>
		<@h.page pager=pager action="${ctx}/admin/bank/list" />
		
	</div><!-- /span -->
	
</div><!-- /row -->

<#if errorMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer red"></i>
		<span class="pink">${errorMsg}</span>
	</h4>
</#if>

<#if infoMsg??>
	<div class="hr hr-18 hr-double dotted"></div>
	<h4 class="lighter">
		<i class="icon-hand-right icon-animated-hand-pointer green"></i>
		<span class="pink">${infoMsg}</span>
	</h4>
</#if>
<script>
	$(document).ready(function(){
		RP.addBreadcrumb([{name:"银行卡管理"}, {name:"银行卡列表", active: true}]);
		$("#breadcrumbs ul").append('&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/admin/bank/add${suffix}"><i class="icon-zoom-in"></i><span class="label label-warning arrowed-in arrowed-in arrowed-right">添加银行卡</span></a>');
	});
</script>